/* Janus Chat - Version 1.0
 * Authors: Matthew Perry
 *          Michael Freid
 *          Marc Latou
 *          Richard Lee
 *
 * The Janus Chat Client is a highly secured
 * peer-to-peer chat client designed to facilitate
 * the transfer of sensitive data or as a communication
 * medium for the extra paranoid
 *
 * This file contains the header for the DirectTab
 * QT class which facilitates the input of data for direct
 * connections */

#ifndef DIRECTTAB_H
#define DIRECTTAB_H

#include "detailtab.h"
#include "../lib/user.h"

namespace Ui {
    class DirectTab;
}

class DirectTab : public DetailTab
{
    Q_OBJECT

    public:
        explicit DirectTab(User* user, QWidget *parent = 0);
        ~DirectTab();

    private:
        Ui::DirectTab *ui;      /* Generated by QT to store all the UI elements */

        QString checkInput();   /* Implementation for validating the input for a direct connection */
        void connectSocket( QTcpSocket* sock ); /* Implementation for connected a socket directly */
        QString getAddress();   /* Implementation for returning the address the user entered */
        void beginChat();       /* Implementation for begining a new chat */
};

#endif // DIRECTTAB_H
